<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Docker Pull Progress</title>
    <style>
        .progress-bar {
            width: 100%;
            background-color: #f3f3f3;
            border-radius: 5px;
            overflow: hidden;
        }
        .progress-bar-fill {
            height: 20px;
            background-color: #4caf50;
            text-align: center;
            line-height: 20px;
            color: white;
            transition: width 0.5s ease-in-out;
        }
    </style>
</head>
<body>
    <h1>Docker Pull Progress</h1>
    <div class="progress-container">
        {% for log in logs %}
            <div class="progress-item">
                <p>{{ log.status }}</p>
                <div class="progress-bar">
                    <div class="progress-bar-fill" style="width: {{ log.progressDetail.current / log.progressDetail.total * 100 }}%;">
                        {{ log.progress }}
                    </div>
                </div>
                <p>ID: {{ log.id }}</p>
            </div>
        {% endfor %}
    </div>
</body>
</html>